<template>
  <ul class="result_con">
    <li class="succ" v-if="cstatus === 1">
      <span>{{ camount }}</span>
    </li>
    <li class="final" v-if="cstatus === 3">
      <span>{{ camount }}</span>
    </li>
    <li class="sorry" v-if="cstatus === 2">sorry</li>
  </ul>
</template>

<script>
export default {
  name: "Lottery",
  props: ["cstatus", "camount"],
};
</script>

<style lang="scss">
.result_con {
  width: 7.5rem;
  height: 3.2rem;
  overflow: hidden;
  position: relative;
  li {
    width: 7.5rem;
    height: 3.2rem;
    &.succ {
      background: url(../assets/images/succ.png) no-repeat center center / contain;
      span {
        width: 1.6rem;
        height: 0.68rem;
        position: absolute;
        top: 1.02rem;
        left: 4.21rem;
        text-align: center;
        font-weight: 600;
        font-size: 0.68rem;
        letter-spacing: -0.03rem;
        line-height: 0.68rem;
        color: #cf2944;
      }
    }
    &.sorry {
      background: url(../assets/images/sorry.png) no-repeat center center / contain;
    }
    &.final {
      background: url(../assets/images/final.png) no-repeat center center / contain;
      span {
        width: 1.6rem;
        height: 0.68rem;
        position: absolute;
        top: 1.72rem;
        left: 2.81rem;
        text-align: center;
        font-weight: 600;
        font-size: 0.68rem;
        letter-spacing: -0.03rem;
        line-height: 0.68rem;
        color: #cf2944;
      }
    }
  }
}
</style>
